package com.best.pojo;

import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author yangruyi
 * @date 2021/3/10
 */
@TableName("app_user")
public class AppUser implements Serializable {
    /**
     * 用户id 修改传
     */
    private String id;
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    private String username;
    /**
     * 用户密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 性别 0 女 1男
     */
    private Integer gender;
    /**
     * 年龄
     */
    private int age;
    /**
     * 用户状态,黑名单操作才用
     */
    private int userState;
    /**
     * 备注
     */
    private String extra;
    /**
     * 收藏
     */
    private String heart;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getUserState() {
        return userState;
    }

    public void setUserState(int userState) {
        this.userState = userState;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getHeart() {
        return heart;
    }

    public void setHeart(String heart) {
        this.heart = heart;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
